package com.dy.project.controller;

import com.dy.project.domain.CommodityOrderTemplate;
import com.dy.project.service.IMcCommodityOrderMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 自助購物訂單Controller
 * 
 * @author ruoyi
 * @date 2020-07-19
 */
@RestController
@RequestMapping("/commodity/commodityOrderMain")
public class McCommodityOrderMainController
{
    @Autowired
    private IMcCommodityOrderMainService mcCommodityOrderMainService;

    /**
     * 查询自助購物訂單列表模板
     */
    @GetMapping("/listMainTemplate")
    public List<CommodityOrderTemplate> listMainTemplate(CommodityOrderTemplate commodityOrderTemplate)
    {
        List<CommodityOrderTemplate> list = mcCommodityOrderMainService.selectMcCommodityOrderMainTemplateList(commodityOrderTemplate);
        return list;
    }


}
